import request from './request'

export const getList = (params) => {
  return request.get('/zxch/carInfo/app/list',params)
}

export const getInfo = (id) => {
  return request.get(`/zxch/carInfo/app/${id}`)
}

export const add = (params) => {
  return request.post('/zxch/carInfo/app',params)
}

export const edit = (params) => {
  return request.put('/zxch/carInfo/app',params)
}

export const del = (ids) => {
  return request.delete(`/zxch/carInfo/app/${ids}`)
}

export const getLicense = (carId) => {
  return request.get(`/zxch/carLicense/app/car/${carId}`)
}

export const getCarNums = () => {
  return request.get('/zxch/carInfo/app/carNums')
}
